﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace super_scrable.Models
{
    /// <summary>
    /// The utlity description of the game :
    /// <see cref="GameBoard"/>
    /// 
    /// </summary>
    public class GameInfo
    {
        private List<Player> players;

        private Boolean saved;

        public Boolean Saved
        {
            get { return saved; }
            set { saved = value; }
        }

        private int round;

        public int Round
        {
            get { return round; }
            set { round = value; }
        }

        public GameInfo() {
            round = 0;
            players = new List<Player>();

           // Word.InitializeStatic();
        }

        public GameInfo(List<Player> players) : this()
        {
            round = 0;
            this.players = players;
        }

        public void AddPlayer(Player player) {
            players.Add(player);
        }

        public Player getPlayer(int i)
        {
            return players[i];
        }

        public int getPlayerNumber()
        {
            return players.Count;
        }
    }
}
